#include "app/app_runner.h"
#include <string.h>
#include "thirdparty/log.h"



int main(int argc, char const *argv[])
{
    //判断参数是否正确
    if(argc < 2)
    {
        log_error("main argc number not fial");
        return -1;
    }

    if(strcmp(argv[1],"app") == 0)
    {
        //app 主逻辑
        app_runner_run();
    }
    else if(strcmp(argv[1],"deamon") == 0)
    {
        //deamon主逻辑
    }
    else if(strcmp(argv[1],"ota") == 0)
    {
        //ota主逻辑
    }
    else
    {
        log_error("main argv fail (app|deamon|ota)");
        return -1;
    }
    log_error("hello  wrod");
    return 0;
}
